import { MenuState } from '@/interfaces/vuex/menu'
import { StoreOptions } from 'vuex'

const menuModel: StoreOptions<MenuState> = {
  state: {
    menuList: [],
    isok: false,
  },
  mutations: {
    setMenuList(state, value) {
      state.menuList = value
    },
    setIsOk(state, value) {
      state.isok = value
    },
  },
  actions: {},
}

export default menuModel
